<?php

require_once 'Zend/Db/Table/Abstract.php';

class Application_Model_Recentact extends Zend_Db_Table
{
    protected $_name = 'recentact';
    protected $_primary='id';
    
    public function addone($id,$gratitude)//ͶƱ
    {
        $act = $this->fetchRow("`id`=$id")->toArray();
        $data = array(
                "$gratitude"=>$act[$gratitude]+1
                );
        $this->update($data,"`id`=$id");
    }
}

